package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.vo.PageBeanVo;

public interface CommentService {

    //保存动态评论(返回操作之后的次数)
    Integer saveMovementComment(Comment comment);

    //删除动态评论(返回操作之后的次数)
    Integer deleteMovementComment(Comment comment);

    //分页查询指定动态列表
    PageBeanVo findMovementComment(Integer pageNumber, Integer pageSize, String movementId);

    //根据用户的id和操作的类型查询评论列表的数据
    PageBeanVo findCommentByCommentType(Integer pageNumber, Integer pageSize, int commentType, Long userId);

    //保存视频评论
    Integer saveVideoComment(Comment comment);

    //删除视频评论
    Integer deleteVideoLike(Comment comment);

    //视频评论点赞
    Integer videoCommentLike(Comment comment);

    //取消视频评论点赞
    Integer deleteVideoCommentLike(Comment comment);

    //动态评论点赞
    Integer movementCommentLike(Comment comment);

    //取消动态评论点赞
    Integer deleteMovementCommentLike(Comment comment);

    ;
}
